from tkinter import Tk, Label, Button

def button_click():
    label.config(text="按钮被点击了！")

root = Tk()

label = Label(root, text="这是一个标签")
label.pack()

button = Button(root, text="点击我", command=button_click)
button.pack()

root.mainloop()